package com.woniu.atms.vo.pre.passenger;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Getter
@Setter
public class PassengerAddTokenVO {
    @NotNull(message = "非法token")
    @NotBlank(message = "非法token")
    @Size(min = 20,message = "非法token")
    private  String token;
    @NotNull(message = "姓名不能为null")
    @NotBlank(message = "姓名不能为空字符串")
    @Size(max = 20,min = 1,message = "姓名长度必须在1-20个字符之间")
    private String name;
    @NotNull(message = "性别不能为null")
    @NotBlank(message = "性别不能为空字符串")
    @Size(max = 1,min = 1,message = "性别必须为1个字符")
    private String gender;
    @NotNull(message = "身份证号不能为null")
    @NotBlank(message = "身份证号不能为空字符串")
    @Size(max = 18,min = 18,message = "身份证号必须是18个字符")
    private String idCard;
    @NotNull(message = "手机号不能为null")
    @NotBlank(message = "手机号不能为空字符串")
    @Size(max = 11,min = 11,message = "手机号必须是11位数字")
    private String telephone;
    @NotNull(message = "邮箱不能为null")
    @NotBlank(message = "邮箱不能为空字符串")
    @Email(message = "邮箱格式不正确")
    private String email;


}
